﻿namespace EyeOpen.Math.Combinatorics
{
	using System;
	using System.Collections.Generic;
	using System.Linq;

	public static class EnumerableExtensions
	{
		public static IEnumerable<T> Randomize<T>(this IEnumerable<T> source)
		{
			var rnd = new Random();
			return source.OrderBy(item => rnd.Next());
		}
	}
}